//===== eAthena Script ======================================= 
//= Blacksmith Skills Quests
//===== By: ================================================== 
//= Lupus, Reddozen
//===== Current Version: ===================================== 
//= 1.3a
//===== Compatible With: ===================================== 
//= eAthena Revision 3800+
//===== Description: ========================================= 
//= Temp quests for new skills for 2nd classes
//===== Additional Comments: ================================= 
//= 1.0 for fully working skills only [Lupus]
//= 1.1 Added more new skill quests for more classes [Lupus]
//= Somehow eA engine doesn't let you keep learn't skill V_V'
//= 1.2 Added to correct locations, correct NPC's, fixed
//= some of the items required and made them into real
//= quests. [Reddozen] 
//= 1.3 Fixed bugs and minor typos. Optimized [Lupus]
//= 1.3a fixed an item ID typo, thx 2Spiritual Kid
//= 1.3b Splitted into different files [DracoRPG]
//= 1.3c Inverted the weight check for Greed [DracoRPG]
//============================================================


//============================================================
// KKޯ - g + ޭpӳN
//============================================================
//== GOODDAY - GREED SKILL ===================================
geffen,172,52,7	script	TS	826,{
	mes "[TS]";
	if(BaseJob!=Job_Blacksmith) goto L_nosmith;
	if(getskilllv(1013)) goto L_alreadyhave;
	if(Weight < MaxWeight-5000) goto L_notstrong; // You must carry so much that you cannot add 500 more (weight is x10!)


	mes "Aݰ_ӫD`jڡI";
	mes "ڷQگЧAӧޯ~";
	mes "NŮvʪF褣Τ@";
	skill 1013,1,0;
	close;

L_notstrong:
	mes "AAjǦ^ӧڧa";
	mes "AtWL500";
	close;

L_nosmith:
	mes "NOӤ.";
	mes "DAo˻{?";
	next;
	emotion e_omg;
	mes "[TS]";
	mes "H";
	mes "Ao˷QH!";
	close;

L_alreadyhave:
	mes "ڤwgڪDǱµAF";
	mes "ҥHAA^ӧڤF";
	close;
}

//== AKI - ޭpӳN ==================================
geffen,178,72,7	script	Ȼ	726,{
	mes "[Ȼ]";
	if(BaseJob!=Job_Blacksmith) goto L_nosmith;
	if(getskilllv(1012)) goto L_alreadyhave;
	if(getskilllv(1013)<1) goto L_nogreed;
	if(JobLevel<30) goto L_nojob;
	mes "ڭ̻ݭnIF";
	mes "ڱaӧڴNЧA:";
	mes "2 K";
	mes "8 q";
	mes "2 Kl";
	mes "1 үSߦĤ";
	mes "500 Zeny";
	next;
	
	mes "[Ȼ]";
	mes "ˬdUA~.";
	next;
	
	if(countitem(999)<2 || countitem(1003)<8 || countitem(613)<2 || countitem(971)<1 || zeny<500) goto L_noitems;//Items: Steel, Coal, Iron_Hammer, Detrimindexta,
	delitem 999, 2;//Items: Steel,
	delitem 1003, 8;//Items: Coal,
	delitem 613, 2;//Items: Iron_Hammer,
	delitem 971, 1;//Items: Detrimindexta,
	set zeny, zeny-500;
	
	mes "[Ȼ]";
	mes "ܦnAAF賣aӤF";
	mes "ڭ̶}lǲߧa~";
	skill 1012,1,0;
	next;
	
	specialeffect 183;
	mes "zIAǪu֡I";
	mes "nnϥΧAsޯ!";
	close;

L_noitems:
	mes "[Ȼ]";
	mes "ASF@.";
	mes "AFAӧڧa";
	close;
	
L_nosmith:
	mes "nѧbboL᪺a.";
	mes "O~LowoӵL᪺a~";
	emotion e_laugh;
	close;

L_nogreed:
	mes "pGAٷQI";
	mes "ANboѮ𻡸ܧa~";
	close;

L_alreadyhave:
	mes "ڷQAwgǹLF";
	mes "N⨺A]\ٯAǷ|ӧޯ~";
	close;
	
L_nojob:
	mes "AWKKAӧa";
	mes "̰_X30ŪKKڡI";
	close;
}
